﻿<%@ Page Title="Rel. de Cronogramas de Aulas" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="RelatorioCronogramaAulas.aspx.cs" Inherits="AcadPosApp.Relatorios.RelatorioCronogramaAulas" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <style type="text/css">
        .style10
        {
            width: 173px;
        }
        .style11
        {
            width: 315px;
        }
        .style12
        {
            width: 217px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Panel ID="pnlPesquisa" runat="server" GroupingText="Consulta de Cronograma">
                <table class="form-inline">
                    <tr>
                        <td class="style12">
                            Estado
                        </td>
                        <td class="style11" >
                            Polo
                        </td>
                        <td class="style10">
                            Data Aula </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style12" >
                            <asp:DropDownList ID="ddlEstadoPesquisa" runat="server" OnSelectedIndexChanged="ddlEstadoPesquisa_SelectedIndexChanged"
                                Width="200px" AutoPostBack="True">
                            </asp:DropDownList>
                        </td>
                        <td class="style11" >
                            <asp:DropDownList ID="ddlPoloPesquisa" runat="server" AutoPostBack="True" 
                                Enabled="False" Width="300px">
                            </asp:DropDownList>
                        </td>
                        <td class="style10">
                            <asp:TextBox ID="txtDtAula" runat="server" MaxLength="10" required="" 
                                Width="150px"></asp:TextBox>
                            <asp:CalendarExtender ID="calendarioDtInicio" runat="server" Enabled="True" 
                                TargetControlID="txtDtAula">
                            </asp:CalendarExtender>
                        </td>
                        <td>
                            <asp:Button ID="btnConsultar" runat="server" OnClick="btnConsultar_Click1" 
                                Text="Consultar" Width="100px" />
                            <asp:Button ID="btnImprimirRelatorio" runat="server" 
                                OnClick="btnImprimirRelatorio_Click" Text="Imprimir" />
                        </td>
                    </tr>
                </table>
                <br />
                <asp:GridView ID="gvwPesquisa" runat="server" AutoGenerateColumns="False" CssClass="mGrid"
                    DataKeyNames="" EmptyDataText="Dados não localizados..." GridLines="Vertical"
                    Width="1000px">
                    <AlternatingRowStyle BackColor="#D3D3D3" />
                    <Columns>
                        <asp:BoundField DataField="CURSO" HeaderText="Curso">
                            <HeaderStyle HorizontalAlign="Left" Width="10%" />
                            <ItemStyle HorizontalAlign="Left" Width="10%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CURRICULO" HeaderText="Currículo">
                            <HeaderStyle HorizontalAlign="Left" Width="5%" />
                            <ItemStyle HorizontalAlign="Left" Width="5%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="modulo" HeaderText="Módulo">
                            <HeaderStyle HorizontalAlign="Left" Width="8%" />
                            <ItemStyle HorizontalAlign="Left" Width="8%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="COD_TURMA" HeaderText="Turma">
                            <HeaderStyle HorizontalAlign="Left" Width="7%" />
                            <ItemStyle HorizontalAlign="Left" Width="7%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="disciplina" HeaderText="Disciplina">
                            <HeaderStyle HorizontalAlign="Left" Width="10%" />
                            <ItemStyle HorizontalAlign="Left" Width="10%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="docente" HeaderText="Docente">
                            <HeaderStyle HorizontalAlign="Left" Width="8%" />
                            <ItemStyle HorizontalAlign="Left" Width="8%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="coordenador" HeaderText="Coordenador">
                            <HeaderStyle HorizontalAlign="Left" Width="8%" />
                            <ItemStyle HorizontalAlign="Left" Width="8%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="situacao" HeaderText="Situação">
                            <ItemStyle HorizontalAlign="Left" Width="5%" />
                        </asp:BoundField>
                    </Columns>
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <PagerStyle CssClass="pagination" ForeColor="Black" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#1E90FF" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#808080" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#383838" />
                </asp:GridView>
            </asp:Panel>
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="btnImprimirRelatorio" />
        </Triggers>
    </asp:UpdatePanel>
    <br />
</asp:Content>
